package com.example.san.ddmstest;

import android.app.Activity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {
    private static final String AppCompatActivity_TAG="MainActivity";

    private Button bt;
        public void onCreate(Bundle savedInstanceState){
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_main);
            bt = (Button)findViewById(R.id.bt);
            bt.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    Log.v(MainActivity.AppCompatActivity_TAG,"This is Verbose");
                    Log.d(MainActivity.AppCompatActivity_TAG,"This is Debug");
                    Log.i(MainActivity.AppCompatActivity_TAG,"This is Information ");
                    Log.w(MainActivity.AppCompatActivity_TAG,"This is Warnning");
                    Log.e(MainActivity.AppCompatActivity_TAG,"This is Error");
                }
            });
        }
}
